home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 May / CHIP Mayıs 1997.iso / qtools / readme.txt < prev   
Text File  |  1996-09-12  |  9KB  |  149 lines

  1.  
  2. This is the readme from our most recent licensed developer CD.  Not all of it is applicable to this source upload, because the map editor, source data, and game source code have not been made freely available (gotta have some reason to charge lots of $$$ for it...), but it is the best documentation I have.
  3.  
  4. -- John Carmack
  5.  
  6.  
  7.  
  8.  
  9. Quake Development CD 9/4/96
  10. ---------------------------
  11.  
  12. Included is all of the source data and utilities necessary to generate all of the data distributed with quake, and the main executable itself.  You can modify the data in place, or copy the data you wish to modify to an addon directory and work from there.
  13.  
  14. The win-32 tools have not been extensively tested yet, because we still do most of our work on unix.
  15.  
  16.  
  17. Completely building Quake code and data:
  18. ---------------------------------------
  19.  
  20. This process can take quite some time on a slow machine.  I am omiting the steps to rebuild all the maps, otherwise it would take all day (literally).
  21.  
  22. Install VC++ and MASM.  You don't need MASM if you are going to use DJGPP to compile the dos version instead of using the windows version.
  23.  
  24. Copy the contents of the quake development cd to /quake on any drive.  The directory MUST be called "quake", because that string is searched for by the utilities to provide compatability between unix directories mounted inside a tree, and windows directories mounted on a drive letter.  You can move it off of root, but it will require changes in a few batch files.
  25.  
  26. Add drive:\quake\bin_nt to your path.
  27.  
  28. cd \quake\utils
  29. install            // compiles all of the utilities and copies them to \quake\bin_nt
  30.  
  31. cd \quake\id1\gfx
  32. foreach %i in (*.ls) do qlumpy %i    // regrab all 2d graphics
  33. // gfx.ls    : graphics that are statically loaded: the small font, status bar stuff, etc
  34. // cached.ls    : graphics that are dynamically cached: menus, console background, etc
  35. // the other .ls files are texture paletes for map editing
  36.  
  37. cd \quake\id1\progs
  38. sprgen sprites.qc    // regrab the sprites used in the 3d world (all three of them)
  39.  
  40. foreach %i in (*.qc) do modelgen %i    // regrab all 3d models
  41. // many of the .qc files do not actually specify a model, but
  42. // running them through modelgen is harmless
  43.  
  44. qcc            // rebuild progs.dat and files.dat
  45.  
  46. qfiles -bspmodels    // reads files.dat and runs qbsp and light on all external
  47.             // brush models (health boxes, ammo boxes, etc)
  48. qfiles -pak 0        // builds \quake\id1\pak0.pak
  49. qfiles -pak 1        // builds \quake\id1\pak1.pak
  50. // note that you should not leave the pak files in your development directory, because
  51. // you won't be able to override any of the contents.  If you are doing your work
  52. // in an add-on directory, it isn't a problem, and the pak files will load faster
  53. // than the discrete files.
  54.  
  55. cd \quake\code
  56. mw            // a batch file that compiles the windows version of quake
  57. q +map newmap        // a batch file that runs "quake -basedir \quake +map newmap"
  58.  
  59.  
  60.  
  61.  
  62. the bsp tools
  63. -------------
  64.  
  65. The bsp tools are usually run straight from the map editor, but they can also be called from the command line.
  66.  
  67. cd \quake\id1\maps
  68. qbsp dm1        // processes dm1.map into dm1.bsp
  69. light dm1        // generates lightmaps for dm1.bsp.  If you run "light -extra dm1", it will make smoother shadow
  70.             // edges by oversampling.
  71. vis dm1            // generates a potentially visible set (PVS) structure for dm1.bsp.  This will only work if
  72.             // the map is leak-free.  You can run "vis -fast dm1" to generate a rough PVS without
  73.             // spending very much time.
  74. bspinfo newmap        // dumps the stats on newmap
  75.  
  76. QuakeEd
  77. -------
  78. You are not expected to be able to figure out how to use QuakeEd from the (nonexistant) documentation we have.  You get one full day with one of our map designers for tutoring.
  79.  
  80. If you want to try it out anyway:
  81.  
  82. cd \quake\id1        // the directory that contains the quake.qe3 project file
  83. qe3            // see quakeed.txt for a box-room walkthrough
  84.  
  85. QuakeEd is still undergoing development.  The version included in bin_nt is a newer version than the source included in utils.  I don't have the current source here right now.
  86.  
  87. Expect new versions over the next few weeks.
  88.  
  89.  
  90. The main source code:
  91. --------------------
  92. You can use the djgpp compiler (http://www.delorie.com) to rebuild quake for dos.  We used a cross-compiler built for our Digital Unix alpha system that works very rapidly, but the dos hosted compiler is quite slow.
  93.  
  94. Our reccomended procedure is to forget about dos and just work with the windows version for code changes.  
  95.  
  96. Currently at id we compile for three different platforms: NEXTSTEP, dos, and windows.  The code also compiles for linux, but that is not part of our regular process.  The C code is totally portable, but the assembly code was writen for GAS, which was unfreindly for windows development.  Michael wrote a GAS to MASM translator to allow the assembly code to compile under windows.  We still consider
  97. the GAS code (.s) to be the master, and derive the masm (.asm) code from it inside the makefile.  If you are never going to touch
  98. the assembly code (we don't reccoment you do), or you are willing to take full responsibility for it, you can throw out the .s files
  99. and just use the .asm.
  100.  
  101. The direct-sound driver is not very good right now.  You may want to run with "-nosound".
  102.  
  103.  
  104. The utilities source:
  105. --------------------
  106.  
  107. Each utility has a seperate directory of code with a VC++ project file.  They all share several code files in the "common" directory.  The NT versions of these utilities have not been very extensively tested, as we still use DEC Unix for most of our work (soon to change).  The two source files you are most likely to change are: common/lbmlib.c to load a more common graphics format, like pcx, and common/trilib.c to load a 3D format other than Alias object seperated triangles.
  108.  
  109.  
  110. qe3 : The map editor.  Designed for use on open GL accelerated systems such as intergraph or glint-TX based systems, but it will still run on the basic NT software version.  REQUIRES A 3-BUTTON MOUSE!
  111.  
  112. qbsp / light / vis : these utilities are called directly from the map editor to process .map files into .bsp files.  They can be executed by hand if desired.
  113.  
  114. bspinfo : a command line utility that will dump the count and size statistics on a .bsp file.
  115.  
  116. qlumpy : the 2-D graphics grabber.  Grabs graphics off of .lbm pictures.  Used for grabbing the 2d graphics used by quake (status bar stuff, fonts, etc), and also used for grabbing the textures to be viewed in qe3 and extracted by qbsp.  Qlumpy script files have the default extension ".ls" (LumpyScript).
  117.  
  118. qcc : the Quake-C compiler.  Reads "progs.src", then compiles all of the files listed there.  Generates "progs.dat" for use by quake at runtime, "progdefs.h" for use at compile time, and "files.dat" to be used as input for qfiles.exe.
  119.  
  120. qfiles : Builds pak files based on the contents of "files.dat" writen out by qcc.  It can also regenerate all of the .bsp models used in a project, which is required if any changes to the file format have been made.
  121.  
  122. sprgen : the sprite model grabber.  Grabs 2d graphics and creates a .spr file.
  123.  
  124. modelgen : the 3-D model grabber.  Combines skin graphics with 3d frames to produce a .mdl file.  The commands are parsed out of .qc files that can also be read by qcc, so a single source can both generate and use the data.
  125.  
  126. texmake : creates 2d wireframe outlines of a 3d model that can be drawn on to give a texture to a model.  This is only done once per model, or when the base frame changes.
  127. Example:
  128. cd \quake\id1\models\torch
  129. texmake base        // reads base.tri and creates the graphic base.lbm
  130. copy base.lbm skin.lbm    // never work on the base skin, it might get overwritten
  131. cd \quake\id1\progs
  132. modelgen torch.qc    // creates torch.mdl out of files in \quake\id1\models\torch
  133.  
  134.  
  135.  
  136. Continuing development work at id:
  137. ------------------------------
  138. winquake : work is still being done on the direct-X drivers for quake.
  139.  
  140. qe3 : the NT editor does not yet have full functionality for texture positioning and entity connecting.
  141.  
  142. qrad : a radiosity replacement for light.exe.  Instead of placing light entities, certain textures automatically become light emiters.  The light bounces off of surfaces, so a single light panel can light all sides of a room.
  143.  
  144. qcsg / qbsp / qwrite : qbsp.exe is being broken up into multiple programs to reduce memory usage and provide a better means for experimentation.  It should get faster, as well.
  145.  
  146. visx : a faster replacement for vis.
  147.  
  148.  
  149.